import http from '../util/http';

export default {
  postLogin(data) {
    return http.postData(data, '/api/login');
  },
  postPassword({ newPassword, userId }) {
    return http.postData({ newPassword }, `/api/users/${userId}/change-password`);
  },
  getLoginInfo({ userId }) {
    return http.getData({}, `/api/users/${userId}`);
  },
};
